﻿@model blogDemo.Models.user

@{
    ViewBag.Title = "用户信息修改";
}

<h2>用户信息修改</h2>

@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        
        @Html.HiddenFor(model => model.ID)

        <div class="editor-label">
            <label for="username">用户名</label>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.username)
            @Html.ValidationMessageFor(model => model.username)
        </div>

        <div class="editor-label">
            <label for="username">登录密码</label>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.password)
            @Html.ValidationMessageFor(model => model.password)
        </div>

        <div class="editor-label">
            <label for="username">用户等级</label>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.level)
            @Html.ValidationMessageFor(model => model.level)
        </div>

        <p>
            <input type="submit" value="保存" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("返回", "userIndex")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
